package com.fanshilz.flower2025.apps.admin.wechatUser.resp;

import com.fanshilz.flower2025.apps.admin.project.resp.AttachmentDetailResp;
import com.mybatisflex.annotation.RelationOneToMany;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class WechatUserIdentityTableDetailResp {

    private Long identityId;

    private Integer identityTypeValue;

    private String identityTypeLabel;

    private String identityCompanyName;

    private Integer identityStatusValue;

    private String identityStatusLabel;

    private Boolean identitySwitch;

    private String identityRealName;

    @RelationOneToMany(selfField = "identityId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 7")
    private List<AttachmentDetailResp> wechatUserIdcardPortraitImages;

    @RelationOneToMany(selfField = "identityId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 8")
    private List<AttachmentDetailResp> wechatUserWorkCardImages;

    @RelationOneToMany(selfField = "identityId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 9")
    private List<AttachmentDetailResp> wechatUserBusinessLicenseImages;

    @RelationOneToMany(selfField = "identityId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 10")
    private List<AttachmentDetailResp> wechatUserStockProveImages;

    private Timestamp createTime;

    private Long createUserId;

    private String createUserName;

    private Long updateUserId;

    private Timestamp updateTime;

    private String updateUserName;

}
